<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=fo, initial-scale=1.0">
    <title>Document</title>
    <style>
        h1 {
            text-align: center;
        }
        form {
            text-align: center;
        }
    </style>
    <script> 
        function submitForm() {
            alert("注册成功");
            return false; 
        }
    </script>
</head>
<body>
    <h1>注册账号</h1>
    <hr>
    <form onsubmit="return submitForm()">
        用户名：<input type="text" name="account" maxlength="10" required placeholder="最多10位" autofocus><br>
          密码：<input type="password" name="code" maxlength="8" required placeholder="最多8位"><br>
   再次输入密码：<input type="password" name="code" maxlength="8" required placeholder="两次输入密码要一致"><br>
        QQ邮箱：<input type="email" name="email"required placeholder="可通过QQ邮箱找回密码"><br>
          <button>立即注册</button>
    </form>
</body>
</html>